package com.example.jacky.android_easeui.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.jacky.android_easeui.R;

import java.util.List;

/**
 * Created by Administrator on 2016/8/3.
 */
public class HomeAdapter extends BaseQuickAdapter<String> {

    public HomeAdapter(int layoutResId, List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String name) {
        if (name == null) return;
        TextView textView = baseViewHolder.getView(R.id.demo_tv);
        textView.setText(name);
    }
}
